<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


    
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<base href="<%=basePath%>">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="Content/mypluing/css/cursor.css" />
		<link rel="stylesheet" href="Content/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css" />
		<link rel="stylesheet" href="Content/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" href="Content/css/Layout_basic.css" />
		<link rel="stylesheet" href="Content/mypluing/css/font.css" />
		<link rel="stylesheet" href="Content/css/Layout_userInfoManager.css" />
		<link rel="stylesheet" href="Content/css/validfrom.css" />
		<title></title>
	</head>
	<body>
		<form id="userinfo" action="user/json-userInfoModify.do" method="post"  role="form">
		<header class="page-header page-header-contain">
			<h1>个人信息管理&nbsp;&nbsp;&nbsp;<small>
				<i class="glyphicon glyphicon-user"></i>king</small>
				<button id="modify" type="button" class="btn btn-info">编辑</button>
				<div id="operate" class="btn-group">
					<button id="submit" type="submit" class="btn btn-success">提交</button>
					<button type="button" class="btn btn-default">取消</button>
				</div>
			</h1>
		</header>
		
		<div class="col-xs-10">
			<table class="table">
				<input type="hidden" value="${user.username }" name="username"/>
				<input type="hidden" value="${user.id }" name="id"/>
				<tr>
					<td class="col-xs-2">
						<label class="label label-info">昵称</label>
					</td>
					<td class="col-xs-4">
						<input name="nickName" class="form-control" type="text" value="${user.nickName }" datatype="s4-18" nullmsg="请填写用昵称！" sucmsg ="恭喜，昵称可用!" errormsg="昵称在4-18个字符" ajaxurl="/EstateManager/user/json-isNickNameExist.do"/>
						<span class="Validform_checktip"></span>
					</td>
					<td class="nickName">${user.nickName }</td>
				</tr>
				<tr>
					<td>
						<label class="label label-info">电话号码</label>
					</td>
					<td class="col-xs-4">
						<input name="tel" class="form-control" type="tel" value="${user.tel }" datatype="m" nullmsg="手机号不能为空" errormsg="手机号不正确" sucmsg="输入正确" />
						<span class="Validform_checktip"></span>
					</td>
					<td class="tel">${user.tel }</td>
				</tr>
				<tr>
					<td><label class="label label-info">Email</label></td>
					<td class="col-xs-4">
						<input name="email" class="form-control" type="email" value="${user.email }" datatype="e"/>
						<span class="Validform_checktip"></span>
					</td>
					<td class="email">${user.email }</td>
				</tr>
				<tr>
					<td>
						<label class="label label-info">性别</label>
					</td>
					<td class="col-xs-4 form-group">
						<span class="">
							<input name="sex" id="man" type="radio" ${(user.sex=='男')?'checked':'' } value="男"/><label for="man">&nbsp;&nbsp;男&nbsp;&nbsp;</label>
						</span>
						<span>
							<input name="sex" id="woman"  type="radio" ${(user.sex=='女')?'checked':'' } value="女"/><label for="woman">&nbsp;&nbsp;女&nbsp;&nbsp;</label>
						</span>
					</td>
					<td class="sex">${user.sex }</td>
				</tr>
				
				<tr>
					<td>
						<label class="label label-info">真实姓名</label>
					</td>
					<td class="col-xs-4">
					<input name="realName" class="form-control" type="text" value="${user.realName  }" datatype="*" ignore="ignore" errormsg="格式不正确" sucmsg="输入正确"/>
					</td>
					<td class="realName">${user.realName }</td>
				</tr>
				<tr>
					<td>
						<label class="label label-info">身份证号码</label>
					</td>
					<td class="col-xs-4"><input name="cardNo" value="${user.cardNo }" class="form-control" type="text" datatype="card1|card2" ignore="ignore" errormsg="身份证号码格式不正确" sucmsg="输入正确"/></td>
					<td class="cardNo">${user.cardNo }</td>
				</tr>
			</table>
		</div>
		</form>
	</body>
	<script type="text/javascript" src="Content/js/jquery-1.11.3.js" ></script>
	<script type="text/javascript" src="Content/bootstrap-3.3.5-dist/js/bootstrap.min.js" ></script>
	<script type="text/javascript" src="Content/js/Validform_v5.3.2_min.js" ></script>
	<script type="text/javascript" src="Content/js/Js_userInfoManager.js" ></script>
</html>
